package com.hanthink.system.mapper.equipment;

import java.util.List;

import com.hanthink.system.domain.pc.EmOutgoingQuality;
import org.apache.ibatis.annotations.Param;

/**
 * 任务检测Mapper接口
 * 
 * @author hanthink
 * @date 2021-10-08
 */
public interface EmOutgoingQualityMapper {

	   /**
     * 查询设备任务检测列表
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 设备任务检查集合
     */
	   List<EmOutgoingQuality> selectEmOutgoingQualityList(EmOutgoingQuality emOutgoingQuality);

    /**
     * 根据批次号查询塑胶事业部主动抽查项目
     * @param batchno
     * @return
     */
    List<EmOutgoingQuality> selectEmOutgoingQualityListQC(@Param("batchno")String  batchno,@Param("isfinished") String isfinished,@Param("userid") Long  userid);

    /**
     *
     * @param batchno
     * @param isfinished
     * @param tasktype
     * @return
     */
    List<EmOutgoingQuality> selectEmOutgoingQualityListbybatchno(@Param("batchno") String batchno,@Param("isfinished") String isfinished,@Param("tasktype") String tasktype);



     List<EmOutgoingQuality> selectEmOutgoingQualityListLPA(EmOutgoingQuality emOutgoingQuality);
    /**
     * 新增设备任务检查列表
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 结果
     */
    int insertEmOutgoingQuality(EmOutgoingQuality emOutgoingQuality);
    
    /**
     * 更新设备任务检查列表
     * 
     * @param emOutgoingQuality 设备任务检查
     * @return 结果
     */
    int  updateEmOutgoingQuality(EmOutgoingQuality emOutgoingQuality);

    /**
     * 塑胶事业部抽查更新任务状态
     * @param emOutgoingQuality
     * @return
     */
    int  updateEmOutgoingQualityQC(EmOutgoingQuality emOutgoingQuality);

    Integer countUncompletedTaskByUserId(@Param("userId") Long userId);

    List<EmOutgoingQuality> selectEmOutgoingQualityListQCNobatch(@Param("isfinished") String isfinished,@Param("userid") Long userID);
}
